﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Data;

namespace MySanArt
{
    public partial class new_account : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            MUSTERILER musteri = new MUSTERILER();
            musteri.Adi = txtFirstName.Text.Trim();
            musteri.Soyadi = txtLastName.Text.Trim();
            musteri.Email = txtEPosta.Text.Trim();
            musteri.Cinsiyet = rblGender.SelectedValue.Trim();
            musteri.CepTel = txtCepTel.Text.Trim();
            musteri.EvTel = txtEvTel.Text.Trim();
            musteri.Sifre = txtPassword.Text.Trim();
            Collections.SaveMusteri(musteri);

        }
    }
}